{% extends 'baseForm/Form.html' %}
{% import 'bootstrap/wtf.html' as wtf %}
<style>
    body {
        padding-bottom: 20px;
    }
</style>
{% block title %}
    管理员登录
{% endblock %}
{% block content %}
    {% block form %}
        {{ form.csrf_token }}
        {% for message in get_flashed_messages() %}
            <div class='alert  alert-success'>{{ message }}</div>
        {% endfor %}

        <form action="{{ url_for('admin.admin_login') }}" class="form-signin" method="POST">
            <h2 class="form-signin-heading">管理员登录</h2>
            {{ form.hidden_tag() }}
            {{ wtf.form_field(form.username) }}
            {{ wtf.form_field(form.password) }}
            {{ wtf.form_field(form.remember) }}
            {{ wtf.form_field(form.submit) }}
        </form>

    {% endblock %}
{% endblock %}